<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
         <span>
             {{reverseMsg("123")}}
         </span>
</div>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.config.productionTip = false;

    new Vue({
        el:"#app",
        data:{
            msg:"戏子入画 一生天涯"
        },
        computed:{
            reverseMsg:{
                get:function(){
                    return function (msg) {
                        console.log(msg);
                        return this.msg.split("").reverse().join("")
                    }
                }
            }
        }
    })
</script>
</html>